//
//  UIGridView.h
//  LotteryClient
//
//  Created by Sunyon 14-5-7.
//  Copyright (c) 2014年 CTTC. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "UIGridViewCell.h"
@protocol UIGridViewDelegate <NSObject>

@required

- (NSInteger)numberOfRowsInGridView;
- (NSInteger)numberOfColumnInGridView;
- (UIGridViewCell *)cellInGridViewAtRow:(NSInteger)row column:(NSInteger)column;
- (CGFloat)heightOfRowInGridView:(NSInteger)row;

@optional

- (void)didSelectedCellInGrid:(UIGridViewCell *)cell;

@end


@interface UIGridView : UIView <UITableViewDataSource>

@property(nonatomic, strong)UITableView *tableView;

@property (nonatomic,assign) id<UIGridViewDelegate> delegate;

@property (nonatomic ,assign) int intervalInCells;

- (void)reloadSubViews;


@end
